package com.poh.mapper;

import com.poh.pojo.Topic;
import net.sf.jsqlparser.statement.select.Top;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface TopicMapper {
    List<Topic> getTopicByCourseId(@Param("courseId") int courseId);
    int addTopic(Topic topic);
    Topic getTopicById(@Param("topicId") int topicId);
    List<Topic> getTopicByUserId(@Param("userId") int userId);
    int deleteTopic(@Param("topicId") int topicId);
}
